﻿<%@ Page Language="C#" MasterPageFile="~/master/CenterMain.Master" AutoEventWireup="true"
    CodeBehind="PolicyList.aspx.cs" Inherits="com.huigo.B2B.Web.center.order.PolicyList" %>

<%@ Register Assembly="AspnetPagerV1" Namespace="AspnetPagerV1" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3 class="greybg">
        我的保单</h3>
    <form id="Form1" runat="server" class="form-search">
    <label>
        保单号</label><asp:TextBox ID="orderName" runat="server" Columns="10"></asp:TextBox>
    <label>
        被保人姓名</label><asp:TextBox ID="insuredName" runat="server" Columns="6"></asp:TextBox>
    <label>
        证件号码</label><asp:TextBox ID="insuredNo" runat="server" Columns="15"></asp:TextBox>
    <br />
    <br />
    <label>
        保单起期</label><div class="input-append date" data-date="@DateTime.Now.AddMonths(-1).ToString('yyyy-MM-dd')"
            data-date-format="yyyy-mm-dd">
            <asp:TextBox ID="beginDate" runat="server" Columns="8" data-date-format="yyyy-mm-dd"></asp:TextBox>
            <span class="add-on"><i class="icon-calendar"></i></span>
        </div>
    &nbsp;-&nbsp;
    <div class="input-append date" data-date="@DateTime.Now.AddMonths(-1).ToString('yyyy-MM-dd')"
        data-date-format="yyyy-mm-dd">
        <asp:TextBox ID="endDate" runat="server" Columns="8" data-date-format="yyyy-mm-dd"></asp:TextBox>
        <span class="add-on"><i class="icon-calendar"></i></span>
    </div>
    <label>
        保单类型</label><asp:DropDownList ID="proType" runat="server">
        </asp:DropDownList>
    &nbsp;&nbsp;
    <asp:Button ID="btnQuery" CssClass="button btn-big btn-orange" runat="server" Text="查询" OnClick="btnQuery_Click" />
    </form>
    <%=Notiy %>
    <asp:Repeater ID="PolicyListContent" runat="server">
        <HeaderTemplate>
            <table width="100%" class="table table-bordered table-striped responsive-utilities table-hover">
                <thead>
                    <tr>
                        <th>
                            保单号
                        </th>
                        <th>
                            保险名称
                        </th>
                        <th>
                            被保人姓名
                        </th>
                        <th>
                            证件号码
                        </th>
                        <th>
                            保单金额
                        </th>
                        <th>
                            保单起期
                        </th>
                        <th>
                            保单状态
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("PolicyNo")%>
                </td>
                <td>
                    <%#Eval("OrderProductName")%>
                </td>
                <td>
                    <%#Eval("PolicyInsuredName")%>
                </td>
                <td>
                    <%#Eval("PolicyInsuredCredentialNo")%>
                </td>
                <td>
                    <%# string.Format("{0:C2}", (Convert.ToDecimal(Eval("PolicyUnitPrice")) * Convert.ToDecimal(Eval("PolicyCount"))))%>
                </td>
                <td>
                    <%#Convert.ToDateTime(Eval("PolicyFromPeriod").ToString().Replace("T","  ")).ToString("yyyy-MM-dd")%>
                </td>
                <td>
                    <%#Eval("StatusDesc") %>
                </td>
                <td>
                    <%#ExitBtn(Eval("PolicyStatus").ToString(), Eval("OrderId").ToString(), Eval("PolicyId").ToString(), Convert.ToDateTime(Eval("PolicyFromPeriod")))%>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody> </table>
        </FooterTemplate>
    </asp:Repeater>
    <cc1:Pager ID="pageInfo" runat="server" OnPageChanged="pageInfo_PageChanged" PageSize="10"
        PreText="上一页" NextText="下一页" ShowPreNext="true" NumericButtonCount="10" Css="page" />
</asp:Content>
